package com.oba.king.businessprocess.storagemanage.instorage;

/**
 * Title:           InStorage
 * Description:
 * Copyright:       Copyright (c) 2010
 * Company:         King Top Limited
 * @author          Wu Liang
 * @version 1.0
 *
 * MODIFICATION HISTORY
 * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 * Date Modified        Modified By         Comments
 * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 * 28/04/2010           Wu Liang            Code Creation
 */

import java.util.Date;

import com.oba.base.service.BaseBo;
import com.oba.king.login.UserInfo;
import com.oba.king.sysmanager.Dept;

public class InStorage extends BaseBo {
	
	private Long inStorageId;
	private String inStorageCode;//入库单号
	private String storageId;//库房ID 改成库别
	private Date inDate;//入库日期
	private String responMan;//经办人
	private String belegCode;//凭据号
	private String remark;//入库原因
	private Double totalSum;//一单总金额
	private Date createDate;//修改或创建日期
	private Long auditStatus;//审核状态 1新增未审核 2审核通过 3审核未通过 4修改未审核 5过期
	private String auditMan;//审核人
	private String auditRemark;//审核备注
	private UserInfo userInfo;//录入人员
	private Dept department;//入库部门
	private String auditStatusStr;
	
	private InStoragePrdt inStoragePrdt;

	public InStoragePrdt getInStoragePrdt() {
		return inStoragePrdt;
	}

	public void setInStoragePrdt(InStoragePrdt inStoragePrdt) {
		this.inStoragePrdt = inStoragePrdt;
	}

	public Long getId() {
		return inStorageId;
	}

	public String getName() {
		return inStorageCode;
	}

	public Long getInStorageId() {
		return inStorageId;
	}

	public void setInStorageId(Long inStorageId) {
		this.inStorageId = inStorageId;
	}

	public String getInStorageCode() {
		return inStorageCode;
	}

	public void setInStorageCode(String inStorageCode) {
		this.inStorageCode = inStorageCode;
	}


	public String getStorageId() {
		return storageId;
	}

	public void setStorageId(String storageId) {
		this.storageId = storageId;
	}

	public Date getInDate() {
		return inDate;
	}

	public void setInDate(Date inDate) {
		this.inDate = inDate;
	}

	public String getResponMan() {
		return responMan;
	}

	public void setResponMan(String responMan) {
		this.responMan = responMan;
	}

	public String getBelegCode() {
		return belegCode;
	}

	public void setBelegCode(String belegCode) {
		this.belegCode = belegCode;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Double getTotalSum() {
		return totalSum;
	}

	public void setTotalSum(Double totalSum) {
		this.totalSum = totalSum;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Long getAuditStatus() {
		return auditStatus;
	}

	public void setAuditStatus(Long auditStatus) {
		this.auditStatus = auditStatus;
	}

	public String getAuditMan() {
		return auditMan;
	}

	public void setAuditMan(String auditMan) {
		this.auditMan = auditMan;
	}

	public UserInfo getUserInfo() {
		return userInfo;
	}

	public void setUserInfo(UserInfo userInfo) {
		this.userInfo = userInfo;
	}

	public Dept getDepartment() {
		return department;
	}

	public void setDepartment(Dept department) {
		this.department = department;
	}

	public String getAuditRemark() {
		return auditRemark;
	}

	public void setAuditRemark(String auditRemark) {
		this.auditRemark = auditRemark;
	}

	public String getAuditStatusStr() {
		if(auditStatus!=null&&!auditStatus.equals("")){
			if(auditStatus==1){
				return "<font color=\"red\">新增未审核</font>";
			}else if(auditStatus==2){
				return "审核通过";
			}
			else if(auditStatus==3){
				return "审核未通过";
			}
			else if(auditStatus==4){
				return "修改未审核";
			}
			else if(auditStatus==5){
				return "过期";
			}
		}
		return null;
	}

	public void setAuditStatusStr(String auditStatusStr) {
		this.auditStatusStr = auditStatusStr;
	}

}
